<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/header_css::header('新增-数据表')"></head>
<body>
	<div id="dpLTE" class="container-fluid" v-cloak>
		<table class="form" id="form">
			<tr>
	            <td class="formTitle">表名称<font face="宋体">*</font></td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="表中文名称" v-model="name" isvalid="yes" checkexpession="NotNull">
	            </td>
        	</tr>
			<tr>
	            <td class="formTitle">表编码<font face="宋体">*</font></td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="字段英文编码" v-model="code" isvalid="yes" checkexpession="EnglishStr">
	            </td>
        	</tr>

			<tr>
	            <td class="formTitle">备注<font face="宋体">*</font></td>
	            <td class="formValue">
					<textarea class="form-control" placeholder="字段说明" v-model="remark"  ></textarea>
	            </td>
        	</tr>
		</table>
	</div>
    <div th:include="include/footer_js::footer"></div>
    <script>
		/**
		 * 新增-字段字典表js
		 */
		var vm = new Vue({
			el:'#dpLTE',
			data: {
				name:"",
				code:"",
				remark:"",
				ids:[]
			},
			methods : {
				acceptClick: function() {
					if (!$('#form').Validform()) {
						return false;
					}
					$.SaveForm({
						url: '../../sys/generator/create?_' + $.now(),
						param: vm.$data,
						success: function(data) {
							$.currentIframe().vm.load();
						}
					});
				}
			}
		})

	</script>
</body>
</html>